

/* eslint-disable */
// last param for chunk name
const Login = r => require.ensure([], () => r(require('../pages/Login.vue')), 'Login');
const Index = r => require.ensure([], () => r(require('../pages/Index.vue')), 'index');
const NotFound = r => require.ensure([], () => r(require('../pages/NotFound.vue')), 'index');

// order module
const Order = r => require.ensure([], () => r(require('../pages/order/Order.vue')), 'Order');
const OrderDefault = r => require.ensure([], () => r(require('../pages/order/OrderDefault.vue')), 'Order');
const OrderList = r => require.ensure([], () => r(require('../pages/order/OrderList.vue')), 'Order');

// analytics module
const Analytics = r => require.ensure([], () => r(require('../pages/analytics/Analytics.vue')), 'Analytics');
const AnalyticsDefault = r => require.ensure([], () => r(require('../pages/analytics/AnalyticsDefault.vue')), 'Analytics');

// user module
const User = r => require.ensure([], () => r(require('../pages/user/User.vue')), 'User');
const UserDefault = r => require.ensure([], () => r(require('../pages/user/UserDefault.vue')), 'User');
const UserList = r => require.ensure([], () => r(require('../pages/user/UserList.vue')), 'User');

// Product module
const Product = r => require.ensure([], () => r(require('../pages/product/Product.vue')), 'Product');
const ProductDefault = r => require.ensure([], () => r(require('../pages/product/ProductDefault.vue')), 'Product');
const ProductList = r => require.ensure([], () => r(require('../pages/product/ProductList.vue')), 'Product');

// operation module
const Operation = r => require.ensure([], () => r(require('../pages/operation/Operation.vue')), 'Operation');
const OperationDefault = r => require.ensure([], () => r(require('../pages/operation/OperationDefault.vue')), 'Operation');

// System module
const System = r => require.ensure([], () => r(require('../pages/system/System.vue')), 'System');
const SystemDefault = r => require.ensure([], () => r(require('../pages/system/SystemDefault.vue')), 'System');
/* eslint-enable */


const routers = [
    { path: '/', component: Login },
    { path: '/index', component: Index },
    {
        path: '/order',
        component: Order,
        children: [
            {
                path: '', component: OrderDefault,
            },
            {
                path: 'list',
                component: OrderList,
            },
        ],
    },
    {
        path: '/user',
        component: User,
        children: [
            {
                path: '', component: UserDefault,
            },
            {
                path: 'list',
                component: UserList,
            },
        ],
    },
    {
        path: '/operation',
        component: Operation,
        children: [
            {
                path: '', component: OperationDefault,
            },
        ],
    },
    {
        path: '/product',
        component: Product,
        children: [
            {
                path: '', component: ProductDefault,
            },
            {
                path: 'list',
                component: ProductList,
            },
        ],
    },
    {
        path: '/analytics',
        component: Analytics,
        children: [
            {
                path: '', component: AnalyticsDefault,
            },
        ],
    },
    {
        path: '/system',
        component: System,
        children: [
            {
                path: '', component: SystemDefault,
            },
        ],
    },
    {
        path: '*',
        component: NotFound,
    },
];
export default routers;
